from app import setup_logging
from app import (create_app, init_scheduler_app)
from app.setting import (APP_HOST, APP_PORT)
from app.scheduler.taskscheduler import SchedulerConfig

app = create_app()

if __name__ == '__main__':
    # 启动日志记录
    setup_logging()
    # 任务调度配置
    # app.config.from_object(SchedulerConfig())
    # init_scheduler_app(app)

    app.run(host=APP_HOST, port=APP_PORT, debug=True)
